﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ForumList.aspx.cs" Inherits="InformationSystem.WebSite.Forum.ForumList" %>

<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>学生信息事务服务系统论坛</title>
    <link href="css/style_1_common.css" rel="stylesheet" type="text/css" />
    <link href="css/style_1_forum_forumdisplay.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" type="text/css" href="css/mainstyle.css" />
    <link rel="Stylesheet" type="text/css" href="../css/jquery-ui-1.7.1.custom.css" />
    <!--[if IE 7]><link rel="stylesheet" href="../css/ie.css" type="text/css" media="screen, projection" /><![endif]-->
    <!--[if IE 6]><link rel="stylesheet" href="../css/ie6.css" type="text/css" media="screen, projection" /><![endif]-->
    <!--[if IE]>
		<style type="text/css">
		  .clearfix {
		    zoom: 1;     /* triggers hasLayout */
		    display: block;     /* resets display for IE/Win */
		    }  /* Only IE can see inside the conditional comment
		    and read this CSS rule. Don't ever use a normal HTML
		    comment inside the CC or it will close prematurely. */
		</style>
	<![endif]-->
    <!-- JavaScript -->
    <script type="text/javascript" src="../Scripts/jquery-1.3.2.min.js"></script>
    <script type="text/javascript" src="../Scripts/jquery-ui-1.7.1.custom.min.js"></script>
    <script type="text/javascript" src="../Scripts/hoverIntent.js"></script>
    <script type="text/javascript" src="../Scripts/superfish.js"></script>
    <script type="text/javascript" src="../Scripts/excanvas.pack.js"></script>
    <script type="text/javascript" src="../Scripts/jquery.flot.pack.js"></script>
    <script type="text/javascript" src="../Scripts/jquery.markitup.pack.js"></script>
    <script type="text/javascript" src="../Scripts/set.js"></script>
    <script type="text/javascript" src="../Scripts/custom.js"></script>
    <script type="text/javascript">
        function updatecount(response, result) {
            var text = response;
            var responseArray = Ext.util.JSON.decode(result.responseText);
            document.getElementById('online').firstChild.textContent = "在线人数:" + responseArray.count;
        }
    </script>
</head>
<body>
    <div class="container" id="container">
        <div id="header">
            <div id="profile_info">
                <img src="../img/avatar.jpg" id="avatar" alt="avatar" onclick="window.location.href='../Panel.aspx'"
                    style="cursor: pointer" />
                <p>
                    欢迎<a style="margin-left: 4px; margin-right: 10px" href="../Panel.aspx"><%=user.UserName%></a><a
                        style="margin-right: 2px" href="../Panel.aspx">设置</a></p>
                <p id="online" style="margin-top: 2px">
                    在线人数:0 <a style="margin-left: 5px;" href="javascript:void(0)" onclick="window.location.href='../Logout.aspx'">
                        注销</a>
                </p>
                <p class="last_login" id="lastlogintime" runat="server">
                </p>
            </div>
            <div id="logo">
                <h1>
                    <a href="/"></a>
                </h1>
            </div>
        </div>
        <!-- end header -->
        <div id="content">
            <div id="top_menu" class="clearfix">
                <ul class="sf-menu">
                </ul>
                <div style="cursor: pointer; line-height: 16px; visibility:hidden" onclick='mywindow.show()'>
                    <a id="visit" class="right">关于/About</a></div>
            </div>
            <div class="section">
                <div id="pgt" class="bm bw0 pgs cl">
                    <span id="fd_page_top">
                        <div runat="server" class="pg" id="pgtop">
                        </div>
                    </span><a href="javascript:void(0)" id="newspecial" runat="server" title="发新帖">
                        <img src="image/pn_post.png" alt="发新帖" /></a></div>
                <ul id="thread_types" class="ttp bm cl" runat="server">
                </ul>
                <div style="position: relative" id="threadlist" class="tl bm bmw">
                    <div class="th">
                        <table cellspacing="0" cellpadding="0">
                            <tbody>
                                <tr>
                                    <th colspan="2">
                                    </th>
                                    <td class="by">
                                        作者
                                    </td>
                                    <td class="num">
                                        回复/查看
                                    </td>
                                    <td class="by">
                                        最后发表
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="bm_c" runat="server" id="subjectlistcon">
                    </div>
                </div>
                <div class="bm bw0 pgs cl">
                    <span id="fd_page_bottom">
                        <div class="pg" runat="server" id="pgbottom">
                        </div>
                    </span><a href="javascript:void(0)" id="newspecialbottom" title="发新帖" runat="server">
                        <img src="image/pn_post.png" alt="发新帖" /></a></div>
            </div>
            <!-- end #content -->
            <div id="footer" class="clearfix">
                <p class="left">
                    Power by 3161140 672598722</p>
                <p class="right">
                    © 2012 NJUST, Some Rights Reserved.</p>
            </div>
            <!-- end #footer -->
        </div>
        <!-- end container -->
    </div>
    <ext:ResourceManager ID="ResourceManager1" runat="server" />
    <ext:TaskManager runat="server" ID="taskmgr">
        <Tasks>
            <ext:Task TaskID="getusercountprogress" AutoRun="true">
                <DirectEvents>
                    <Update Url="../UserOnline.aspx" Complete="updatecount(response,result)" Method="GET"
                        Delay="2000">
                    </Update>
                </DirectEvents>
            </ext:Task>
        </Tasks>
    </ext:TaskManager>
</body>
</html>
